<!-- 
	포인트 충전
 -->

<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0 maximum-scale=1.0, user-scalable=no" />
	<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
	<link rel="Stylesheet" href="css/bootstrap-responsive.min.css" />
	<link rel="stylesheet" href="css/questudy.css" />
	
	<script src="http://code.jquery.com/jquery.js"></script>
	<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
	<script src="js/questudy.js" ></script>
	<script src="js/mypage/mypage.js"></script>
<title>chargePage</title>
</head>
<%
	int point = ((Integer)request.getAttribute("point")).intValue();
%>
<body>
<jsp:include page="nav/nav_main.jsp"></jsp:include>
	<div class="container firstDiv">
		<form method="get" name="chargeForm" action="PaymentAction.Member">
			<div class="col-md-6 col-md-offset-3">
				<div class="input-group" style="margin-top:20px; margin-bottom:20px">
					<span class="input-group-addon">보유포인트</span>
			 		<input type="text" name="havingPoint" id="havingPoint" disabled class="form-control" value='<%= point %>'>
			 		<span class="input-group-addon">원</span>
				</div><!-- /input-group -->
				<p class="text-center text-info">포인트 충전을 진행합니다. 포인트 충전은 1000원 단위로만 할 수 있습니다.</p>
				<div class="input-group" style="margin-top:20px;">
					<span class="input-group-addon">충전할 금액</span>
			 		<input type="text" name="point" id="chargeAmount" class="form-control">
			 		<span class="input-group-addon">원</span>
				</div><!-- /input-group -->
				<p class="text-center"><button type="button" class="btn btn-info" onclick="charge()" style="margin-top:20px;">충전하기</button></p>
				<p class="text-danger" id="message"></p>
			</div>
		</form>
	</div>
</body>
</html>